package xunhuan;

public class test9 {
    public static void main(String[] args) {
        int y = 10;
        int x = 5;
        int c = 0;
        while (y >= x){
            y = y -x;

            c++;
        }
        System.out.println("商：" + c);
        System.out.println("余数：" + y);
    }
}
